.class Lrexsee/sensor/RexseeSensorMagneticField$1;
.super Ljava/lang/Object;
.source "RexseeSensorMagneticField.java"

# interfaces
.implements Landroid/hardware/SensorEventListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/sensor/RexseeSensorMagneticField;-><init>(Lrexsee/core/browser/Browser;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/sensor/RexseeSensorMagneticField;


# direct methods
.method constructor <init>(Lrexsee/sensor/RexseeSensorMagneticField;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    .line 59
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onAccuracyChanged(Landroid/hardware/Sensor;I)V
    .locals 0
    .param p1, "sensor"    # Landroid/hardware/Sensor;
    .param p2, "accuracy"    # I

    .prologue
    .line 62
    return-void
.end method

.method public onSensorChanged(Landroid/hardware/SensorEvent;)V
    .locals 13
    .param p1, "event"    # Landroid/hardware/SensorEvent;

    .prologue
    const-wide/16 v11, -0x1

    const/4 v10, 0x2

    const/4 v9, 0x0

    .line 65
    iget-object v5, p1, Landroid/hardware/SensorEvent;->sensor:Landroid/hardware/Sensor;

    invoke-virtual {v5}, Landroid/hardware/Sensor;->getType()I

    move-result v5

    if-eq v5, v10, :cond_1

    .line 86
    :cond_0
    :goto_0
    return-void

    .line 66
    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 67
    .local v0, "curTime":J
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->lastUpdate:J
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$0(Lrexsee/sensor/RexseeSensorMagneticField;)J

    move-result-wide v5

    cmp-long v5, v5, v11

    if-eqz v5, :cond_2

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->lastUpdate:J
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$0(Lrexsee/sensor/RexseeSensorMagneticField;)J

    move-result-wide v5

    sub-long v5, v0, v5

    iget-object v7, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mCycle:I
    invoke-static {v7}, Lrexsee/sensor/RexseeSensorMagneticField;->access$1(Lrexsee/sensor/RexseeSensorMagneticField;)I

    move-result v7

    int-to-long v7, v7

    cmp-long v5, v5, v7

    if-lez v5, :cond_0

    .line 68
    :cond_2
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    invoke-static {v5, v0, v1}, Lrexsee/sensor/RexseeSensorMagneticField;->access$2(Lrexsee/sensor/RexseeSensorMagneticField;J)V

    .line 69
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->x:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$3(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v2

    .line 70
    .local v2, "lastX":F
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->y:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$4(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v3

    .line 71
    .local v3, "lastY":F
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->z:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$5(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v4

    .line 72
    .local v4, "lastZ":F
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    iget-object v6, p1, Landroid/hardware/SensorEvent;->values:[F

    const/4 v7, 0x0

    aget v6, v6, v7

    invoke-static {v5, v6}, Lrexsee/sensor/RexseeSensorMagneticField;->access$6(Lrexsee/sensor/RexseeSensorMagneticField;F)V

    .line 73
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    iget-object v6, p1, Landroid/hardware/SensorEvent;->values:[F

    const/4 v7, 0x1

    aget v6, v6, v7

    invoke-static {v5, v6}, Lrexsee/sensor/RexseeSensorMagneticField;->access$7(Lrexsee/sensor/RexseeSensorMagneticField;F)V

    .line 74
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    iget-object v6, p1, Landroid/hardware/SensorEvent;->values:[F

    aget v6, v6, v10

    invoke-static {v5, v6}, Lrexsee/sensor/RexseeSensorMagneticField;->access$8(Lrexsee/sensor/RexseeSensorMagneticField;F)V

    .line 75
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->lastEvent:J
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$9(Lrexsee/sensor/RexseeSensorMagneticField;)J

    move-result-wide v5

    cmp-long v5, v5, v11

    if-eqz v5, :cond_3

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->lastEvent:J
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$9(Lrexsee/sensor/RexseeSensorMagneticField;)J

    move-result-wide v5

    sub-long v5, v0, v5

    iget-object v7, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mEventCycle:I
    invoke-static {v7}, Lrexsee/sensor/RexseeSensorMagneticField;->access$10(Lrexsee/sensor/RexseeSensorMagneticField;)I

    move-result v7

    int-to-long v7, v7

    cmp-long v5, v5, v7

    if-lez v5, :cond_0

    .line 77
    :cond_3
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mAccuracyX:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$11(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v5

    cmpl-float v5, v5, v9

    if-ltz v5, :cond_4

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->x:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$3(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v5

    sub-float/2addr v5, v2

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v5

    iget-object v6, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mAccuracyX:F
    invoke-static {v6}, Lrexsee/sensor/RexseeSensorMagneticField;->access$11(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v6

    cmpl-float v5, v5, v6

    if-gtz v5, :cond_6

    .line 78
    :cond_4
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mAccuracyY:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$12(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v5

    cmpl-float v5, v5, v9

    if-ltz v5, :cond_5

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->y:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$4(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v5

    sub-float/2addr v5, v3

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v5

    iget-object v6, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mAccuracyY:F
    invoke-static {v6}, Lrexsee/sensor/RexseeSensorMagneticField;->access$12(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v6

    cmpl-float v5, v5, v6

    if-gtz v5, :cond_6

    .line 79
    :cond_5
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mAccuracyZ:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$13(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v5

    cmpl-float v5, v5, v9

    if-ltz v5, :cond_0

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->z:F
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$5(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v5

    sub-float/2addr v5, v4

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v5

    iget-object v6, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mAccuracyZ:F
    invoke-static {v6}, Lrexsee/sensor/RexseeSensorMagneticField;->access$13(Lrexsee/sensor/RexseeSensorMagneticField;)F

    move-result v6

    cmpl-float v5, v5, v6

    if-lez v5, :cond_0

    .line 81
    :cond_6
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    invoke-static {v5, v0, v1}, Lrexsee/sensor/RexseeSensorMagneticField;->access$14(Lrexsee/sensor/RexseeSensorMagneticField;J)V

    .line 82
    iget-object v5, p0, Lrexsee/sensor/RexseeSensorMagneticField$1;->this$0:Lrexsee/sensor/RexseeSensorMagneticField;

    # getter for: Lrexsee/sensor/RexseeSensorMagneticField;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorMagneticField;->access$15(Lrexsee/sensor/RexseeSensorMagneticField;)Lrexsee/core/browser/Browser;

    move-result-object v5

    iget-object v5, v5, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v6, "onMagneticFieldChanged"

    invoke-virtual {v5, v6}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;)V

    goto/16 :goto_0
.end method
